package com.mapforge.gui;

import java.awt.event.MouseEvent;

import javax.swing.JPopupMenu;

public interface JPopupMenuProvider<T> {
	/**
	 * Returns the parametized type this {@link JPopupMenuProvider} is providing
	 * {@link JPopupMenu popup menus} for.
	 * 
	 * @return parametized instance this component provides popups for.
	 */
	public T getComponent();

	public JPopupMenu showJPopupMenu(MouseEvent e);
}
